﻿@model IEnumerable<SIBI.Models.BienInformatico>
@using SIBI.Helpers
@{
    ViewBag.Title = "Movimiento Re-Asignación";
}

<h2>Movimiento Re-Asignación</h2>

<script src="@Url.Content("~/Scripts/jquery.ui.autocomplete.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/myScript7.js")" type="text/javascript"></script>

<table  width="60%">
    <tr>
        <th>
            Cargo
        </th>
        <th>
            Usuario
        </th>
    </tr>
    <tr>
        <td>
            @ViewBag.Cargo
        </td>
        <td>
            @ViewBag.Empleado
        </td>
    </tr>
</table>
<br /><br />
<table  width="100%">
    <tr>
        <th>
            Número Serial
        </th>
        <th>
            Estado
        </th>
        <th>
            Tipo Bien
        </th>
        <th>
            Centro Costo 
        </th>
        <th>
            Modelo 
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.BienInformaticoId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nest.cnom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ntib.cnom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ceco_id)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nmym.ncob.cnom)
        </td>
        <td>
            @Html.ActionLink("Asignar", "PreviewReAsignacion", new { id = item.BienInformaticoId }, new { target = "_blank" })
        </td>
    </tr>
}
</table>
<br /><br />

@using (Html.BeginForm()){   

@Html.Hidden("idCargoBaja", Model.First().CargoId)
<input type="submit" value="Finalizar" />

@Html.ActionLink("Menú Anterior", "Index")

}